package designpattern.template.lock;

public abstract class AbstractLockTemplate {

    protected abstract void lock(String key , float releaseTime);

    protected abstract void unLock();

    public final void start(String key , float releaseTime){
        this.lock(key,releaseTime);
        this.unLock();
    }
}
